from django.urls import path, include
from rest_framework.routers import SimpleRouter

router = SimpleRouter()
from .views import CourseCategoryView, CourseView, CourseChapterView, UploadFile, SearchCourseView

router.register('category', CourseCategoryView, 'category')
router.register('course', CourseView, 'course')
router.register('course_chapter', CourseChapterView, 'course_chapter')
router.register('search', SearchCourseView, 'search')
urlpatterns = [
    path('t2/', UploadFile.as_view()),

]
urlpatterns += router.urls
